package fip.map.br;

public class CurrentConditionsDisplay implements Observer, DisplayElement{
	
	private float temperature; 
	private float humidity; 
	private Subject weatherData; 
	
	public CurrentConditionsDisplay (Subject weatherData){
		this.weatherData = weatherData; 
		weatherData.registrerObserver(this);
	}
	public void update(float temperature, float humidity, float pressure){
		this.temperature = temperature; 
		this.humidity = humidity;
		display();
	}
	public void display(){
		System.out.println("Current condictions: "+ temperature + "F degress and " + humidity + "%humidity");
	}	
}
